
import wangtiles.BeattySequence;
import wangtiles.SideValues;
import wangtiles.Tile;
public class TestWang {
	public static void main(String[] args) {
		double alpha=1.0/3; 
		boolean redo=false; 
		SideValues we=(alpha>4.0/3 ? SideValues.zeroPrime : SideValues.zero); 
		SideValues ee=null; 
		for(int i=0;i<50;i++){
			double beta=0; 
			if(redo){
				redo=false; 
				beta=alpha/2.0; 
			}
			else{
			if(alpha<2.0/3) 
				beta=3*alpha;
			else
			{
				if(alpha>=4.0/3) redo=true; 
				beta=alpha/2.0; 
			}// else
			}//else
			BeattySequence seqAlpha=new BeattySequence(alpha); 
			BeattySequence seqBeta=new BeattySequence(beta);
			
			SideValues ne=SideValues.getSideValues(seqAlpha.get(i));
			SideValues se=SideValues.getSideValues(seqBeta.get(i));
			if((beta<alpha)&&(alpha>4.0/3)&&(seqAlpha.get(i)==1)) se=SideValues.zeroPrime; 
			
			Tile current=null; //Tile.getTile(we, ee, ne);
			System.out.println(alpha);
			alpha=beta; 
		}// for
		
	}
	

}
